package com.hgkj.cloud.base.service.impl;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.dao.TenantTableReportsMapper;
import com.hgkj.cloud.base.domain.TenantTableReports;
import com.hgkj.cloud.base.service.TenantTableReportsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TenantTableReportsServiceImpl implements TenantTableReportsService {

    @Autowired
    private TenantTableReportsMapper tenantTableReportsMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return tenantTableReportsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TenantTableReports record) {
        return tenantTableReportsMapper.insert(record);
    }

    @Override
    public int insertSelective(TenantTableReports record) {
        return tenantTableReportsMapper.insertSelective(record);
    }

    @Override
    public TenantTableReports selectByPrimaryKey(Long id) {
        return tenantTableReportsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TenantTableReports record) {
        return tenantTableReportsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TenantTableReports record) {
        return tenantTableReportsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Map<String, Object>> listWarningLevelCounts(Map<String, Object> map) {
        return tenantTableReportsMapper.listWarningLevelCounts(map);
    }

    @Override
    public List<Map<String, Object>> listWarningFactorCounts(Map<String, Object> map) {
        return tenantTableReportsMapper.listWarningFactorCounts(map);
    }

    @Override
    public List<TenantTableReports> findListWarningReportByLevelVal(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.findListWarningReportByLevelVal(map);
    }

    @Override
    public List<Map<String, Object>> countFindListWarningReportByLevelVal(Map<String, Object> map) {
        return tenantTableReportsMapper.countFindListWarningReportByLevelVal(map);
    }

    @Override
    public List<TenantTableReports> listTableReportsPcByMap(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.listTableReportsPcByMap(map);
    }

    @Override
    public Long listTableReportsByMapCount(Map<String, Object> map) {
        return tenantTableReportsMapper.listTableReportsByMapCount(map);
    }

    @Override
    public List<TenantTableReports> listTableReportsByMap(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.listTableReportsByMap(map);
    }

    @Override
    public int deleteTableReport(long id) {
        return tenantTableReportsMapper.deleteTableReport(id);
    }

    @Override
    public int deleteTableReportBytaskInfoUuid(String uuid) {
        return tenantTableReportsMapper.deleteTableReportBytaskInfoUuid(uuid);
    }

    @Override
    public TenantTableReports findTableReportByUuid(String uuid) {
        return tenantTableReportsMapper.findTableReportByUuid(uuid);
    }

    @Override
    public List<Map<String, Object>> listTableLevelUser(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.listTableLevelUser(map);
    }

    @Override
    public int listTableLevelUserCount(Map<String, Object> map) {
        return tenantTableReportsMapper.listTableLevelUserCount(map);
    }

    @Override
    public List<Map<String, Object>> getWarnByUserReport(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.getWarnByUserReport(map);
    }

    @Override
    public Long getWarnByUserReportCount(Map<String, Object> map) {
        return tenantTableReportsMapper.getWarnByUserReportCount(map);
    }

    @Override
    public int frameworkWarningTotal(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkWarningTotal(map);
    }

    @Override
    public List<Map<String, Object>> frameworkWarningUserCount(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkWarningUserCount(map);
    }

    @Override
    public List<Map<String, Object>> listCirsesWarningUser(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.listCirsesWarningUser(map);
    }

    @Override
    public int countListCirsesWarningUser(Map<String, Object> map) {
        return tenantTableReportsMapper.countListCirsesWarningUser(map);
    }

    @Override
    public List<Map<String, Object>> listNomalCirsesWarningUser(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.listNomalCirsesWarningUser(map);
    }

    @Override
    public int countNomalListCirsesWarningUser(Map<String, Object> map) {
        return tenantTableReportsMapper.countNomalListCirsesWarningUser(map);
    }

    @Override
    public List<Map<String, Object>> latestYearWarningStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.latestYearWarningStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkGenderStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkGenderStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkAgeStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkAgeStatistics(map);
    }

    @Override
    public List<Map<String, Object>> statMonthTableReport(Map<String, Object> map) {
        return tenantTableReportsMapper.statMonthTableReport(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsByMap(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsByMap(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsByMap(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsByMap(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsByMap2(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsByMap2(map);
    }


    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForPSQI(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForPSQI(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForLSAS(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForLSAS(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForYBOCS(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForYBOCS(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForEPQC(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForEPQC(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForEPQA(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForEPQA(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsFor16PF(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsFor16PF(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForBRMS(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForBRMS(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForSAS(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForSAS(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForSDS(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForSDS(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForSF36(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForSF36(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForBPRS(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForBPRS(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForCMMSE(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForCMMSE(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForHAMA(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForHAMA(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForHAMD(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForHAMD(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForSCL90(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForSCL90(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForShirritant(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForShirritant(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForLes(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForLes(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsFor566(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsFor566(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsFor399(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsFor399(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsForSCL90(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsForSCL90(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsFor16PF(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsFor16PF(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsForSAS(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsForSAS(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsForSDS(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsForSDS(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsForHADS(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsForHADS(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsForEPQC(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsForEPQC(map);
    }

    @Override
    public List<Map<String, Object>> getListTableReportsDetailsForEPQE(Map<String, Object> map) {
        return tenantTableReportsMapper.getListTableReportsDetailsForEPQE(map);
    }

    @Override
    public List<Map<String, Object>> getSCL90Details(Map<String, Object> map) {
        return tenantTableReportsMapper.getSCL90Details(map);
    }

    @Override
    public List<Map<String, Object>> getStatisticsCount(Map<String, Object> map) {
        return tenantTableReportsMapper.getStatisticsCount(map);
    }

    @Override
    public List<Map<String, Object>> getReporWarningUserCount(Map<String, Object> map) {
        return tenantTableReportsMapper.getReporWarningUserCount(map);
    }

    @Override
    public List<Map<String, Object>> getReportByUser(PageInfo pi, Map<String, Object> map) {
        if (pi != null) {
            map.put("currentCount", pi.getCurrentCount());
            map.put("pageSize", pi.getPageSize());
        }
        return tenantTableReportsMapper.getReportByUser(map);
    }

    @Override
    public List<TenantTableReports> getReportByUserDA(Map<String, Object> map) {
        return tenantTableReportsMapper.getReportByUserDA(map);
    }

    @Override
    public List<Map<String, Object>> frameworkFactorStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkFactorStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkAgeFactorStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkAgeFactorStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkGenderFactorStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkGenderFactorStatistics(map);
    }

    @Override
    public List<Map<String, Object>> ageGenderFactorStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.ageGenderFactorStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkLevelFactorStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkLevelFactorStatistics(map);
    }

    @Override
    public List<Map<String, Object>> fGenderFactorStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.fGenderFactorStatistics(map);
    }

    @Override
    public List<Map<String, Object>> fAgeFactorStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.fAgeFactorStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkAgeReportStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkAgeReportStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkGenderReportStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkGenderReportStatistics(map);
    }

    @Override
    public List<Map<String, Object>> ageGenderReportStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.ageGenderReportStatistics(map);
    }

    @Override
    public List<Map<String, Object>> frameworkLevelReportStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.frameworkLevelReportStatistics(map);
    }

    @Override
    public List<Map<String, Object>> fGenderReportStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.fGenderReportStatistics(map);
    }

    @Override
    public List<Map<String, Object>> fAgeReportStatistics(Map<String, Object> map) {
        return tenantTableReportsMapper.fAgeReportStatistics(map);
    }

    @Override
    public List<Map<String, Object>> getReportStatisticsUser(Map<String, Object> map) {
        return tenantTableReportsMapper.getReportStatisticsUser(map);
    }

    public int getReportStatisticsUserCount(Map<String, Object> map) {
        return tenantTableReportsMapper.getReportStatisticsUserCount(map);
    }

    @Override
    public Long getReportByUserCount(Map<String, Object> map) {
        return tenantTableReportsMapper.getReportByUserCount(map);
    }

    @Override
    public long countTableReportFinished(Map<String, Object> map) {
        return tenantTableReportsMapper.countTableReportFinished(map);
    }

    @Override
    public long countTableReportWarningByTaskUuid(Map<String, Object> map) {
        return tenantTableReportsMapper.countTableReportWarningByTaskUuid(map);
    }

    @Override
    public Map<String, Object> getFullTableReportsByTaskInfoUuid(String taskInfoUuid) {
        return tenantTableReportsMapper.getFullTableReportsByTaskInfoUuid(taskInfoUuid);
    }

    @Override
    public List<Map<String ,Object>> countFinishedisZero(String task_uuid) {
        return tenantTableReportsMapper.countFinishedisZero(task_uuid);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForAslec(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForAslec(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForAdhd(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForAdhd(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForXljk(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForXljk(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForXxdj(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForXxdj(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForKsxwkl(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForKsxwkl(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForTotal(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForTotal(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForXxxljkzh(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForXxxljkzh(map);
    }

    @Override
    public List<Map<String, Object>> excelListTableReportsDetailsForZxxljkzh(Map<String, Object> map) {
        return tenantTableReportsMapper.excelListTableReportsDetailsForZxxljkzh(map);
    }

    @Override
    public List<Map<String, Object>> getAllProposalMagess(Map<String, Object> map) {
        return tenantTableReportsMapper.getAllProposalMagess(map);
    }

    @Override
    public Map<String, Object> statWarningMan(Map<String, Object> map) {
        return tenantTableReportsMapper.statWarningMan(map);
    }

}
